cmake_minimum_required(VERSION 3.0)

project(MyProject)

set(CMAKE_CXX_STANDARD 20) 

include_directories(.) 

aux_source_directory(. DIR_SRCS)
add_executable(myproject ${DIR_SRCS})

message("Source files: ${DIR_SRCS}")

add_custom_target(run 
  COMMAND ./myproject)